import React, {Component} from 'react';
import {StyleSheet, Image, Text, View, Alert,ScrollView, RefreshControl, Button} from 'react-native';

import View01_Data from '../../static/mock_data/View01/index.json';
import img from './assets/images/2.jpg';

let _Data = View01_Data.data.goodsData;
class Details extends Component{
    constructor(props){
        super(props);
        this.state = {
            text:'详情页'
        }
    }

    static navigationOptions = {
        title:'详情页', //设置导航栏标题
        headerStyle:{
            backgroundColor:'#f4511e',
        },
        headerTintColor:'#fff',
        headerTitleStyle:{
          fontWeight:'bold'
        }
    }

    render(){
        let {text} = this.state;
        return(
            <View style={styles.box}>
                <Text>{text}</Text>
            </View>
        )
    }
}

const styles = StyleSheet.create({
    box:{
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
    }
})

export default Details;